package com.deyinet.bdcms.core.controller;

import com.deyinet.bdcms.core.exception.CheckException;

/**
 * Created by Administrator on 2017/3/28 0028.
 */
public class BaseController {
    public BaseController() {
    }

    protected void errorMsg(String msg) {
        throw new CheckException(msg);
    }

    protected void checkNull(Object obj, String msg) {
        if(obj == null) {
            this.errorMsg(msg);
        }

    }
}
